<template>
  <div class="app-container">


    <!-- 底部导航 -->
    <div class="footer-nav">
      <div class="footer-item" :class="{ active: $route.name === 'Home' }" @click="$router.push({ name: 'Home' })">
        首页

      </div>
      <div class="footer-item" :class="{ active: $route.name === 'FindHouse' }"
        @click="$router.push({ name: 'FindHouse' })">
       找房

      </div>
      <div class="footer-item">
       资讯

      </div>
      <div class="footer-item">
      我的
      </div>
    </div>

    <!-- 路由视图 -->
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'App',
};
</script>
<style scoped>
.search-bar {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.city-selector {
  padding: 8px;
  margin-right: 10px;
}

.search-input {
  flex: 1;
  padding: 8px;
  margin-right: 10px;
}

.search-button {
  padding: 8px 16px;
  background-color: #4caf50;
  color: white;
  border: none;
  cursor: pointer;
}

.footer-nav {
  display: flex;
  justify-content: space-around;
  background-color: white;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

.footer-item {
  text-align: center;
  flex: 1;
  padding: 5px;
  color: #888;

}

.footer-item.active {
  color: #4caf50;
}
</style>
